package com.atguigu.lease.model.entity;

import com.atguigu.lease.model.enums.BaseStatus;
import com.atguigu.lease.model.enums.SystemUserType;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(description = "员工信息")
@TableName(value = "system_user")
@Data
public class SystemUser extends BaseEntity {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名")
    @TableField(value = "username")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField(value = "password",select = false)
    private String password;

    @ApiModelProperty(value = "姓名")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "用户类型")
    @TableField(value = "type")
    private SystemUserType type;

    @ApiModelProperty(value = "手机号码")
    @TableField(value = "phone")
    private String phone;

    @ApiModelProperty(value = "头像地址")
    @TableField(value = "avatar_url")
    private String avatarUrl;

    @ApiModelProperty(value = "备注信息")
    @TableField(value = "additional_info")
    private String additionalInfo;

    @ApiModelProperty(value = "岗位id")
    @TableField(value = "post_id")
    private Long postId;

    @ApiModelProperty(value = "账号状态")
    @TableField(value = "status")
    private BaseStatus status;


}